home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 3: CDPD 3 / Almathera Ten on Ten - Disc 3: CDPD3.iso / fish / 701-725 / 708 / intuisup / intuisup42.lha / Intuisup / source.lha / Editor / protos.h < prev    next >
C/C++ Source or Header  |  1992-04-22  |  11KB  |  288 lines

  1. /* $Revision Header *** Header built automatically - do not edit! ***********
  2.  *
  3.  *    (C) Copyright 1991 by Torsten Jürgeleit
  4.  *
  5.  *    Name .....: protos.h
  6.  *    Created ..: Sunday 22-Dec-91 21:22:56
  7.  *    Revision .: 0
  8.  *
  9.  *    Date        Author                 Comment
  10.  *    =========   ====================   ====================
  11.  *    22-Dec-91   Torsten Jürgeleit      Created this file!
  12.  *
  13.  ****************************************************************************
  14.  *
  15.  *    Prototypes and pragmas
  16.  *
  17.  * $Revision Header ********************************************************/
  18.  
  19.     /* Prototypes - editor.c */
  20.  
  21. SHORT editor_action_loop(VOID);
  22. SHORT perform_editor_action(VOID);
  23. VOID  change_editor_mode(USHORT gadget, LONG value);
  24. VOID  print_template_info(VOID);
  25. VOID  clear_template_info(VOID);
  26. VOID  start_gadget_use_mode(VOID);
  27. VOID  end_gadget_use_mode(VOID);
  28.  
  29.     /* Pragmas - editor.c */
  30.  
  31. #pragma regcall(change_editor_mode(d0,d1))
  32.  
  33.     /* Prototypes - edit1.c */
  34.  
  35. SHORT edit_template_data(VOID);
  36.  
  37.     /* Pragmas - edit1.c */
  38.  
  39.  
  40.     /* Prototypes - edit2.c */
  41.  
  42. SHORT edit_template_data_action(struct Template  *old_tp, APTR normal_gl,
  43.               APTR special_gl1, APTR special_gl2, APTR edit_gl);
  44. SHORT change_normal_template_data(APTR gl, struct Template  *tp,
  45.                          USHORT entry, ULONG value);
  46. SHORT change_special_template_data(APTR gl, struct Template  *tp,
  47.                          USHORT entry, ULONG value);
  48.     /* Pragmas - edit2.c */
  49.  
  50. #pragma regcall(edit_template_data_action(a0,a1,a2,a3,d0))
  51. #pragma regcall(change_normal_template_data(a0,a1,d0,d1))
  52. #pragma regcall(change_special_template_data(a0,a1,d0,d1))
  53.  
  54.     /* Prototypes - fonts.c */
  55.  
  56. struct TextAttr  *open_template_font_by_attributes(struct TemplateList  *tl,
  57.                           BYTE *name, USHORT ysize);
  58. struct TextAttr  *open_template_font_by_num(struct TemplateList  *tl,
  59.                                 USHORT num);
  60. USHORT get_template_font_num(struct TemplateList  *tl, struct TextAttr  *ta);
  61. VOID   close_template_font(struct TemplateList  *tl, struct TextAttr  *ta);
  62. VOID   free_font_list(struct TemplateList  *tl);
  63. VOID   free_template_font(struct TemplateFont  *tf);
  64.  
  65.     /* Pragmas - fonts.c */
  66.  
  67. #pragma regcall(open_template_font_by_attributes(a0,a1,d0))
  68. #pragma regcall(open_template_font_by_num(a0,d0))
  69. #pragma regcall(get_template_font_num(a0,a1))
  70. #pragma regcall(close_template_font(a0,a1))
  71. #pragma regcall(free_font_list(a0))
  72. #pragma regcall(free_template_font(a0))
  73.  
  74.     /* Prototypes - list.c */
  75.  
  76. APTR  build_text_list_editor(struct Template  *tp, SHORT hoffset,
  77.                                  SHORT voffset);
  78. VOID  change_text_list_editor_mode(APTR gl, USHORT mode);
  79. SHORT perform_text_list_editor_action(APTR gl, struct Template  *tp,
  80.                          USHORT entry, ULONG value);
  81.     /* Pragmas - list.c */
  82.  
  83. #pragma regcall(build_text_list_editor(a0,d0,d1))
  84. #pragma regcall(change_text_list_editor_mode(a0,d0))
  85. #pragma regcall(perform_text_list_editor_action(a0,a1,d0,d1))
  86.     /* Prototypes - load.c */
  87.  
  88. SHORT  load_project(USHORT mode);
  89. SHORT  parse_block(struct FileData  *fd, struct TemplateList  *tl,
  90.                         USHORT block_type, USHORT mode);
  91. SHORT  parse_item(struct TemplateList  *tl, USHORT block_type,
  92.                      BYTE *keyword, BYTE *arg, USHORT mode);
  93. USHORT search_keyword(BYTE *keyword, BYTE **keyword_list);
  94. struct FileData  *open_file(BYTE *name);
  95. SHORT  read_line(struct FileData  *fd);
  96. BYTE   *fill_read_buffer(struct FileData  *fd);
  97. VOID   close_file(struct FileData  *fd);
  98.  
  99.     /* Pragmas - load.c */
  100.  
  101. /* #pragma regcall(parse_block(a0,a1,d0,d1)) --- NO PRAGMA - recursive!!! */
  102. #pragma regcall(parse_item(a0,d0,a1,a2,d1))
  103. #pragma regcall(search_keyword(a0,a1))
  104. #pragma regcall(open_file(a0))
  105. #pragma regcall(read_line(a0))
  106. #pragma regcall(fill_read_buffer(a0))
  107. #pragma regcall(close_file(a0))
  108.  
  109.     /* Prototypes - main.c */
  110.  
  111. LONG init_resources(VOID);
  112.  
  113.     /* Pragmas - main.c */
  114.  
  115.  
  116.     /* Prototypes - project.c */
  117.  
  118. SHORT perform_project_action(VOID);
  119. VOID  end_rubber_banding(VOID);
  120. VOID  print_project_window_title(VOID);
  121. SHORT new_project(struct TemplateList  *tl, USHORT new_flags);
  122. SHORT new_project_window(struct TemplateList  *tl, USHORT new_flags);
  123. VOID  clear_project_window(USHORT flags);
  124. VOID  change_project_name(struct TemplateList  *tl, BYTE *new_name,
  125.                                  SHORT len);
  126.     /* Pragmas - project.c */
  127.  
  128. #pragma regcall(new_project(a0,d0))
  129. #pragma regcall(new_project_window(a0,d0))
  130. #pragma regcall(clear_project_window(d0))
  131. #pragma regcall(change_project_name(a0,a1,d0))
  132.  
  133.     /* Prototypes - req.c */
  134.  
  135. SHORT show_error(SHORT status);
  136. VOID  continue_requester(BYTE *title, BYTE *text);
  137. VOID  intuition_error_requester(BYTE *text);
  138. VOID  about_requester(VOID);
  139. BOOL  ok_cancel_requester(BYTE *title, BYTE *text);
  140.  
  141.     /* Pragmas - req.c */
  142.  
  143. #pragma regcall(show_error(d0))
  144. #pragma regcall(continue_requester(a0,a1))
  145. #pragma regcall(intuition_error_requester(a0))
  146. #pragma regcall(ok_cancel_requester(a0,a1))
  147.  
  148.     /* Prototypes - save.c */
  149.  
  150. SHORT save_project(VOID);
  151. SHORT write_project_header(BPTR fh, struct TemplateList  *tl);
  152. SHORT write_project_fonts(BPTR fh, struct TemplateList  *tl);
  153. SHORT write_project_templates(BPTR fh, struct TemplateList  *tl);
  154.  
  155.     /* Pragmas - save.c */
  156.  
  157. #pragma regcall(write_project_header(a0,a1))
  158. #pragma regcall(write_project_fonts(a0,a1))
  159. #pragma regcall(write_project_templates(a0,a1))
  160.  
  161.     /* Prototypes - source.c */
  162.  
  163. SHORT save_c_source(VOID);
  164. SHORT save_c_source_action(APTR gl, struct TemplateList  *tl);
  165. SHORT generate_c_source(struct TemplateList  *tl);
  166. SHORT write_project_window(BPTR fh, struct TemplateList  *tl);
  167. SHORT write_project_borders(BPTR fh, struct TemplateList  *tl);
  168. SHORT write_project_fonts(BPTR fh, struct TemplateList  *tl);
  169. SHORT write_project_texts(BPTR fh, struct TemplateList  *tl);
  170. SHORT write_project_gadgets(BPTR fh, struct TemplateList  *tl);
  171. SHORT write_project_program(BPTR fh, struct TemplateList  *tl);
  172. SHORT write_gadget_text_array(BPTR fh, struct TemplateList  *tl, BYTE *id,
  173.                         USHORT count, BYTE **array);
  174. SHORT write_gadget_list(BPTR fh, struct TemplateList  *tl, BYTE *id,
  175.                       USHORT count, struct List  *list);
  176. SHORT write_gadget_special_data(BPTR fh, BYTE *id, USHORT count,
  177.                             struct GadgetData  *gd);
  178.     /* Pragmas - source.c */
  179.  
  180. #pragma regcall(save_c_source_action(a0,a1))
  181. #pragma regcall(generate_c_source(a0))
  182. #pragma regcall(write_project_window(a0,a1))
  183. #pragma regcall(write_project_borders(a0,a1))
  184. #pragma regcall(write_project_fonts(a0,a1))
  185. #pragma regcall(write_project_texts(a0,a1))
  186. #pragma regcall(write_project_gadgets(a0,a1))
  187. #pragma regcall(write_project_program(a0,a1))
  188. #pragma regcall(write_gadget_text_array(a0,a1,a2,d0,a3))
  189. #pragma regcall(write_gadget_list(a0,a1,a2,d0,a3))
  190. #pragma regcall(write_gadget_special_data(a0,a1,d0,a2))
  191.  
  192.     /* Prototypes - subs.c */
  193.  
  194. VOID  draw_box(struct Window  *win, struct Box  *box);
  195. VOID  draw_box_with_border(struct Window  *win, struct Box  *box);
  196. VOID  draw_box_with_offset(struct Window  *win, struct Box  *box,
  197.                           SHORT xoffset, SHORT yoffset);
  198. VOID  *get_head(struct List  *list);
  199. VOID  *get_tail(struct List  *list);
  200. VOID  *get_succ(struct Node  *node);
  201. VOID  *get_pred(struct Node  *node);
  202. VOID  *get_node(struct List  *list, USHORT num);
  203. SHORT duplicate_string(BYTE *text, BYTE **ptr);
  204. VOID  lower_string(BYTE *ptr, BYTE *text);
  205. VOID  upper_string(BYTE *ptr, BYTE *text);
  206. SHORT duplicate_text_list(struct Template  *old_tp, struct Template  *new_tp);
  207. SHORT build_template_text_list(struct Template  *tp, BYTE **text_array);
  208. SHORT add_template_text_list_entry(struct Template  *tp, BYTE *text);
  209. VOID  free_template_text_list(struct Template  *tp);
  210. VOID  free_text_list_entry(struct Node  *node);
  211. SHORT build_template_text_array(struct Template  *tp);
  212. struct Node  *build_text_list_entry(BYTE *text);
  213. VOID  free_template_text_array(struct Template  *tp);
  214.  
  215.     /* Pragmas - subs.c */
  216.  
  217. #pragma regcall(draw_box(a0,a1))
  218. #pragma regcall(draw_box_with_border(a0,a1))
  219. #pragma regcall(draw_box_with_offset(a0,a1,d0,d1))
  220. #pragma regcall(get_head(a0))
  221. #pragma regcall(get_tail(a0))
  222. #pragma regcall(get_succ(a0))
  223. #pragma regcall(get_pred(a0))
  224. #pragma regcall(get_node(a0,d0))
  225. #pragma regcall(duplicate_string(a0,a1))
  226. #pragma regcall(lower_string(a0,a1))
  227. #pragma regcall(upper_string(a0,a1))
  228. #pragma regcall(duplicate_text_list(a0,a1))
  229. #pragma regcall(build_template_text_list(a0,a1))
  230. #pragma regcall(build_text_list_entry(a0))
  231. #pragma regcall(add_template_text_list_entry(a0,a1))
  232. #pragma regcall(free_template_text_list(a0))
  233. #pragma regcall(free_text_list_entry(a0))
  234. #pragma regcall(build_template_text_array(a0))
  235. #pragma regcall(free_template_text_array(a0))
  236.  
  237.     /* Prototypes - template.c */
  238.  
  239. struct Template  *select_template_by_num(LONG num);
  240. struct Template  *select_template_by_pos(SHORT x, SHORT y);
  241. struct Template  *find_template_by_pos(SHORT x, SHORT y);
  242. VOID   fix_template_bounds(VOID);
  243. USHORT get_modify_mode(SHORT x, SHORT y);
  244. struct Template  *create_template(struct TemplateList  *tl);
  245. VOID   add_template_to_list(struct TemplateList  *tl, struct Template  *tp,
  246.                              BOOL default_name);
  247. VOID   build_default_template_name(struct TemplateList  *tl,
  248.                               struct Template  *tp);
  249. SHORT  init_default_template_data(struct TemplateList  *tl,
  250.                    struct Template  *tp, BOOL default_name);
  251. struct Template  *clone_template(struct TemplateList  *tl,
  252.                  struct Template  *old_tp, BOOL full_clone);
  253. SHORT  clone_template_data(struct TemplateList  *tl,
  254.             struct Template  *old_tp, struct Template  *new_tp);
  255. VOID   display_template(struct Template  *tp);
  256. VOID   refresh_all_templates(VOID);
  257. VOID   free_template_list(struct TemplateList  *tl);
  258. VOID   free_template(struct TemplateList  *tl, struct Template  *tp);
  259. VOID   free_template_data(struct TemplateList  *tl, struct Template  *tp);
  260. VOID   delete_template(struct Template  *tp);
  261.  
  262.     /* Pragmas - template.c */
  263.  
  264. #pragma regcall(select_template_by_num(d0))
  265. #pragma regcall(select_template_by_pos(d0,d1))
  266. #pragma regcall(find_template_by_pos(d0,d1))
  267. #pragma regcall(get_modify_mode(d0,d1))
  268. #pragma regcall(create_template(a0))
  269. #pragma regcall(add_template_to_list(a0,a1,d0))
  270. #pragma regcall(build_default_template_name(a0,a1))
  271. #pragma regcall(init_default_template_data(a0,a1,d0))
  272. #pragma regcall(clone_template(a0,a1,d0))
  273. #pragma regcall(clone_template_data(a0,a1,a2))
  274. #pragma regcall(display_template(a0))
  275. #pragma regcall(free_template_list(a0))
  276. #pragma regcall(free_template(a0,a1))
  277. #pragma regcall(free_template_data(a0,a1))
  278. #pragma regcall(delete_template(a0))
  279.  
  280.     /* Prototypes - window.c */
  281.  
  282. SHORT change_project_window(VOID);
  283. SHORT change_project_window_action(APTR gl);
  284.  
  285.     /* Pragmas - window.c */
  286.  
  287. #pragma regcall(change_project_window_action(a0))
  288.